const con = require('../utils/myconn.js')

exports.getAllcate = (callback) => {

    let sql = `select * from categories`
    con.query(sql, (err, data) => {
        if (err) {
            callback(err)
        } else {
            callback(null, data)
        }




    })





}